package com.demo;

// RubberDuck.java
public class RubberDuck extends Duck {
    public RubberDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Squeak();
    }

    @Override
    public void display() {
        System.out.println("橡皮鸭：明黄色塑料材质");
    }
}
